<script type="text/javascript"
	src="<?php echo base_url()?>js/admins/jquery-latest.js"></script>
<script type="text/javascript"
	src="<?php echo base_url()?>js/admins/jquery.tablesorter.js"></script>
<script type="text/javascript">	$(function() {				$("#myTable").tablesorter({sortList:[[0,0],[2,1]]});	});	</script>
<style>
a {
	color: #090;
	text-decoration: none;
}

a:hover {
	color: #FF4400;
	text-decoration: underline;
}
</style>
<div id="content-right">
	<div id="add-product">
		<div id="sidebar-list" class="black">
			<div id="img-product" class="left white">				 <?php echo $title?>			</div>
			<div id="img-back" class="right">
				<a href="javascript:;" onclick="history.go(-1)" class="white">Quay
					lại trang trước </a>
			</div>
			<div class="clear"></div>
		</div>		<?php if (isset($_SESSION["permiss_error"]) && !empty($_SESSION["permiss_error"])){?>			<div
			class="form-add" align="center" style="padding-bottom: 15px;">				<?php echo '<font style="color:red; text-align:center; font-size:15px;">'.$_SESSION['permiss_error'].'</font>'?>			</div>        <?php }$_SESSION["permiss_error"] = NULL;?>		<form
			name="myform" id="myform"
			action="<?php echo base_url() ?>admins/admin_admin/delete"
			method="POST"
			onSubmit="return checkInput(this,'Bạn hãy chọn ít nhất một username','Bạn có chắc muốn xóa không?');">
			<input type="hidden" id="chon" name="chon">
			<div id="select-product">
				<ul class="left">
					<li><a href="<?php echo base_url()?>admins/admin_admin/add">Thêm
							mới</a>&nbsp; |</li>
					<li><a href="#"><span id="chk">0</span> đã chọn</a>&nbsp; |</li>
					<li><input
						style="background-color: none; border: none; text-decoration: underline; color: #EF3503; font-family: Arial; cursor: pointer;"
						type="submit" name="cmd" value="Xóa" class="buttonDel"></li>
					<li>&nbsp;</li>
				</ul>
				<div class='clear'></div>
			</div>
			<div id="list-product">
				<table id="myTable" class="tablePr tablesorter" width="100%"
					border="0" cellspacing="0" cellpadding="0">
					<thead>
						<tr class="headerTbl">
							<td width="3%">STT</td>
							<td width="3%"><input id="checkall" type="checkbox" name="chkall"
								value="yes" onClick="docheck(this.form,0);" /></td>
							<th width="15%">Username</th>
							<th width="15%">Nhóm Admin</th>
							<th width="15%">Họ và tên</th>
							<th width="10%">Phân quyền</th>
							<td width="8%">Xử Lý</td>
						</tr>
					</thead>					<?php if (!empty($admin_admin)){?>						<tbody>							<?php								$i = 1; 								foreach ($admin_admin as $index) {									if ($i % 2 == 0)									{										$bgcolor	= 'str1';									}									else									{										$bgcolor	= 'str2';									}							?>							<tr
							class="<?php echo $bgcolor?>">
							<td><?php echo $i;?></td>
							<td><input type="checkbox" name="Xoa"
								value="<?php echo $index['id']?>"
								onClick="docheckone(this.form);"
								<?php if ($index['id'] == 1) echo 'disabled=disabled'?> /></td>
							<td><?php echo $index['username']?></td>
							<td>									<?php 										foreach ($admin_group as $group){ 											if ($group['id'] == $index['admin_group_id']) echo $group['name'];										}?>								</td>
							<td><?php echo $index['fullname']?></td>
							<td>									<?php if ($_SESSION['admin_id'] == 1){?>											<a
								href="<?php echo base_url()?>admins/admin_admin/permiss/<?php echo $index['id']?>/<?php echo $index['username']?>"
								style="color: rgb(239, 53, 5); text-decoration: underline;">Phân
									quyền</a>									<?php  }else{ echo 'No Permis';}?>								</td>
							<td><a
								href="<?php echo base_url()?>admins/admin_admin/edit/<?php echo $index['id']?>"><img
									width="16" height="16"
									src="<?php echo base_url()?>images/back_end/icon/edit-icon.png" /></a>									<?php if ($index['id'] != 1){?>									<a
								onclick="return confirm('Bạn có chắc chắn xóa: <?php echo $index['username']?> ?');"
								href="<?php echo base_url()?>admins/admin_admin/del/<?php echo $index['id']?>"><img
									width="16" height="16"
									src="<?php echo base_url()?>images/back_end/icon/icon_del.gif"
									title="Xóa admin : <?php echo $index['username']?>" /></a>&nbsp;									<?php }?>									<a
								href="<?php echo base_url()?>admins/admin_admin/active/<?php echo $index['id']?>/<?php echo $index['status']?>">										<?php if ($index['status'] == 1){?>											<img
									src="<?php echo base_url()?>images/back_end/icon/Check-icon.png"
									alt="checked" />										<?php } else {?>											<img
									src="<?php echo base_url()?>images/back_end/icon/un-check.png"
									alt="check" />										<?php }?>									</a></td>
						</tr>							<?php $i++;}?>						</tbody>					<?php }else{?>						<tr>
						<td colspan="7" style="padding: 15px;">Không có dữ liệu</td>
					</tr>					<?php }?>				</table>
			</div>
		</form>
		<div id="pagingPr"><?php echo $paging?></div>
	</div>
</div>
<!-- end  content-right -->
